<!DOCTYPE html>
<html>
	<head>
		<!--引入头部-->
		{{include file="../Common/head"}}
		
		<!--右侧边栏开始-->
		<div id="r-fixed" style="width:42px;position: fixed;background: #004B54;bottom: 50px;right: 10px;z-index: 1000;">
			<ul class="r-fixed-nav">
				<li class="fixed-cart">
					{{if value="isset($_SESSION['userid'])"}}
						<a href="{{U('cart/index')}}"></a>
					{{else}}
						<a href="{{U('Login/index')}}"></a>
					{{endif}}
					
					{{if value="isset($cartNum)"}}
						<em class="cart_goods_all">{{$cartNum}}</em>
					{{else}}
						<em class="cart_goods_all">0</em>
					{{endif}}
					<div style="background: #DD2726;width: 0;height: 40px;position: absolute;top:0;left: -120px;overflow: hidden;color: white;font-size: 14px;text-align: center;line-height: 40px;" class="success">成功添加到购物车</div>
				</li>
				<li style="width: 40px;height: 40px;display: block;margin-top: 3px;" class="fixed-qq"></li>
				<li style="width: 40px;height: 40px;margin-top: 3px;" class="fixed-wx"></li>
				<li style="width: 40px;height: 40px;margin-top: 3px;" class="fixed-top"></li>
			</ul>
		</div>
		<!--右侧边栏结束-->
		
		<!--商品列表页部分开始-->
			<!--guide指南，向导  goods商品  product产品-->
		<div id="w_con">
			<h4 class="w_guide">
				<a class="w_guide_index" href="">首页</a>
				<a class="w_guide_allgoods" href="">全部商品</a>
				{{foreach from="$cateTopData" value="$v"}}
				<a class="w_accord" href="javascript:void(0);">{{$v['cname']}}</a>
				{{endforeach}}
			</h4>
			<div class="w_goods_nav">
				<h2>全部商品
					<span>（共<a href="javascript:void(0)">{{$count}}</a>件商品）
					</span>
				</h2>
				<div class="w_choose">
					<dl class="w_choose_list">
						{{foreach from="$cateData" value="$v"}}
						<dd>
							<a class="w_selected" href="{{U('index',array('cid'=>$v['cid']))}}">
								<span class="w_icon {{$v['list_class']}}"></span>
								<b>{{$v['cname']}}</b>
							</a>
						</dd>
						{{endforeach}}
						<!--<dd>
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>
						<dd>
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>
						<dd>
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>
						<dd>
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>
						<dd>
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>
						<dd>
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>
						<dd style="border: none;">
							<a class="w_selected" href="">
								<span class="w_icon w_icon_one"></span>
								<b>奢侈品区</b>
							</a>
						</dd>-->
					</dl>
					
					<!--这里如果cid=0 默认给的$cateSonData 为空 ，空是假的。所以假的的这里不显示-->
					{{if value="$cateSonData"}}
					<div class="w_all_class">
						<dl>
							<dd class="c_newgoods_brand_name">分类</dd>
							<dd class="w_specific_class1">
								<ul>
									<li class="w_specific_class1_all"><a href="">全部</a></li>
									{{foreach from="$cateSonData" value="$v"}}
									<li><a href="">{{$v['cname']}}</a></li>
									{{endforeach}}
									<!--<li><a href="">奢品首饰</a></li>
									<li><a href="">奢品首饰</a></li>
									<li><a href="">奢品首饰</a></li>-->
								</ul>
							</dd>
						</dl>
					</div>
					{{endif}}
					<!--异步部分-->
					<script type="text/javascript">
						$(function(){
							
						})
					</script>
				</div>
			</div>
			<div class="w_product_con">
				<dl class="w_new">
					<dd style="width: 36px;height: 30px;border: none;">排列：</dd>
					<dd>
						<a href="javascript:void(0)" class="w_announced" data-id="publicTime">即将揭晓</a>
					</dd>
					<dd>
						<a href="javascript:void(0)" data-id="takedout">剩余人次</a>
					</dd>
					<dd>
						<a href="javascript:void(0)" data-id="periods">热卖</a>
					</dd>
					<dd>
						<a href="javascript:void(0)" data-id="addTime">最新商品</a>
					</dd>
					<dd>
						<a class="w_last" href="javascript:void(0)" data-id="totalPrice_up">价格
							<span>
								<img src="./Public/Home/images/list/jia_03.png">
							</span>
							<span class="w_jian_tou">
								<img src="./Public/Home/images/list/jia_06.png">
							</span>
						</a>
					</dd>
				</dl>
				<a class="c_join_all" style="" href="javascript:addAllGoodsToCart()">全部参与</a>
			</div>
				<!--商品列表-->
			
			<div class="w_goods_con">
				<ul class="w_goods_one">
					
					{{foreach from="$goodsData" value="$v"}}

						<li class="w_goods_details ">
							<div class="g_img">
								<a href="{{U('Details/index',array('gid'=>$v['gid']))}}" target="_blank">
									<!--这里不能给图片设置id，因为id是唯一的，class可以多个-->
									<img class="goods_list_img" src="{{$v['pic']}}"/>
								</a>
							</div>
							<a class="g_name" href="{{U('Details/index',array('gid'=>$v['gid']))}}" target="_blank">(第{{$v['newNum']}}期){{$v['gname']}}</a>
							<b>价值：￥{{$v['price']}}</b>
							<div class="g_line">
								<span class="zc_line"></span>
							</div>
							<ul class="g_number">
								<li class="li_top li_have">10</li>
								<li class="li_top li_all">{{$v['price']}}</li>
								<li class="li_top">25</li>
								<li class="li_bottom">已夺宝人次</li>
								<li class="li_bottom">总需人次</li>
								<li class="li_bottom">剩余人次</li>
							</ul>
							<div class="c_rob_box">
								<div class="c_cumulative_box">
									<strong>我要参与：</strong>
									<input id="buyTimes_0" maxlength="6" onafterpaste="checkTimes(0)" onkeyup="checkTimes(0)" onmouseover="this.focus();this.select();" class="c_detailsinputs" value="1" type="text">
									<span onclick="minusTimes(0)" class="c_addnew_subtracts">-</span>
									<span onclick="addTimes(0)" class="c_addnew_pluss">+</span>
								</div>
								<dl class="w_rob">
									<dd>
										<a class="w_slip" href="javascript:void(0);">立即夺宝</a>
									</dd>
									<dd class="w_rob_out">
										<a class="w_rob_in" href="javascript:;">加入购物车</a>
									</dd>
								</dl>
							</div>
							<input type="hidden" class="gid" value="{{$v['gid']}}"/>
							<input type="hidden" class="price" value="{{$v['price']}}" />
						</li>
						{{endforeach}}
						
					<!--<li class="w_goods_details ">
							<div class="g_img">
								<a href="">
									<img src="./Public/Home/images/77_1456477686622.jpg_200x200.png.jpg"/>
								</a>
							</div>
							<a class="g_name" href="">(第913期) BURBERRY/巴宝莉 LONDON 皮革钥匙包【包邮】</a>
							<b>价值：￥3900</b>
							<div class="g_line">
								<span style="width:91.35897435897436%"></span>
							</div>
							<ul class="g_number">
								<li class="li_top">3875</li>
								<li class="li_top">3900</li>
								<li class="li_top">25</li>
								<li class="li_bottom">已夺宝人次</li>
								<li class="li_bottom">总需人次</li>
								<li class="li_bottom">剩余人次</li>
							</ul>
							<div class="c_rob_box">
								<div class="c_cumulative_box">
									<strong>我要参与：</strong>
									<input id="buyTimes_0" maxlength="6" onafterpaste="checkTimes(0)" onkeyup="checkTimes(0)" onmouseover="this.focus();this.select();" class="c_detailsinputs" value="10" type="text">
									<span onclick="minusTimes(0)" class="c_addnew_subtracts">-</span>
									<span onclick="addTimes(0)" class="c_addnew_pluss">+</span>
								</div>
								<dl class="w_rob">
									<dd>
										<a class="w_slip" href="javascript:void(0);" onclick="gotoCart(0);gotoCartOrder()">立即夺宝</a>
									</dd>
									<dd class="w_rob_out">
										<a class="w_rob_in" href="javascript:void(0);" onclick="cartoon(0)">加入购物车</a>
									</dd>
								</dl>
							</div>
						</li>
					<li class="w_goods_details ">
							<div class="g_img">
								<a href="">
									<img src="./Public/Home/images/77_1456477686622.jpg_200x200.png.jpg"/>
								</a>
							</div>
							<a class="g_name" href="">(第913期) BURBERRY/巴宝莉 LONDON 皮革钥匙包【包邮】</a>
							<b>价值：￥3900</b>
							<div class="g_line">
								<span style="width:91.35897435897436%"></span>
							</div>
							<ul class="g_number">
								<li class="li_top">3875</li>
								<li class="li_top">3900</li>
								<li class="li_top">25</li>
								<li class="li_bottom">已夺宝人次</li>
								<li class="li_bottom">总需人次</li>
								<li class="li_bottom">剩余人次</li>
							</ul>
							<div class="c_rob_box">
								<div class="c_cumulative_box">
									<strong>我要参与：</strong>
									<input id="buyTimes_0" maxlength="6" onafterpaste="checkTimes(0)" onkeyup="checkTimes(0)" onmouseover="this.focus();this.select();" class="c_detailsinputs" value="10" type="text">
									<span onclick="minusTimes(0)" class="c_addnew_subtracts">-</span>
									<span onclick="addTimes(0)" class="c_addnew_pluss">+</span>
								</div>
								<dl class="w_rob">
									<dd>
										<a class="w_slip" href="javascript:void(0);" onclick="gotoCart(0);gotoCartOrder()">立即夺宝</a>
									</dd>
									<dd class="w_rob_out">
										<a class="w_rob_in" href="javascript:void(0);" onclick="cartoon(0)">加入购物车</a>
									</dd>
								</dl>
							</div>
						</li>
					<li class="w_goods_details ">
							<div class="g_img">
								<a href="">
									<img src="./Public/Home/images/77_1456477686622.jpg_200x200.png.jpg"/>
								</a>
							</div>
							<a class="g_name" href="">(第913期) BURBERRY/巴宝莉 LONDON 皮革钥匙包【包邮】</a>
							<b>价值：￥3900</b>
							<div class="g_line">
								<span style="width:91.35897435897436%"></span>
							</div>
							<ul class="g_number">
								<li class="li_top">3875</li>
								<li class="li_top">3900</li>
								<li class="li_top">25</li>
								<li class="li_bottom">已夺宝人次</li>
								<li class="li_bottom">总需人次</li>
								<li class="li_bottom">剩余人次</li>
							</ul>
							<div class="c_rob_box">
								<div class="c_cumulative_box">
									<strong>我要参与：</strong>
									<input id="buyTimes_0" maxlength="6" onafterpaste="checkTimes(0)" onkeyup="checkTimes(0)" onmouseover="this.focus();this.select();" class="c_detailsinputs" value="10" type="text">
									<span onclick="minusTimes(0)" class="c_addnew_subtracts">-</span>
									<span onclick="addTimes(0)" class="c_addnew_pluss">+</span>
								</div>
								<dl class="w_rob">
									<dd>
										<a class="w_slip" href="javascript:void(0);" onclick="gotoCart(0);gotoCartOrder()">立即夺宝</a>
									</dd>
									<dd class="w_rob_out">
										<a class="w_rob_in" href="javascript:void(0);" onclick="cartoon(0)">加入购物车</a>
									</dd>
								</dl>
							</div>
						</li>-->
				</ul>
				
			</div>
		</div>
		<!--商品列表页部分结束-->
			
		{{include file="../Common/foot"}}
	</body>
</html>

		